package com.itheima.api.args.demo02;

import java.util.Arrays;
import java.util.List;

public class ArgsDemo01 {

    public static void main(String[] args) {

        String[] arr = {"张三", "李四", "王五"};
        List<String> list = Arrays.asList(arr);

        System.out.println(list.set(0, "王麻子"));

        System.out.println(list);

        System.out.println("------------------------------------");

        String[] arr2 = {"张三", "李四", "王五"};
        List<String> stringList = List.of(arr2);

        System.out.println(stringList);

    }

}
